//
//  WJ_Through_VC.m
//  WJBSApp
//
//  Created by dllo on 16/7/18.
//  Copyright © 2016年 王景伟. All rights reserved.
//

#import "WJ_Through_VC.h"
#import "WJEssAndNewUpTableVC.h"

@interface WJ_Through_VC ()

@end

@implementation WJ_Through_VC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self createConfig];
    
    [self createView];
    
    
}

- (void)createConfig
{
    self.count = 5;
    self.title = @"穿越";
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem itemWithImage:@"RandomAcross~iphone.png" hightImage:@"RandomAcrossClick~iphone.png" target:self action:@selector(tjRightAction)];
    
}


- (void)createView{
    //全部
    WJEssAndNewUpTableVC *all = [[WJEssAndNewUpTableVC alloc]init];
    all.title = @"全部";
    all.url = WJThroughAllURL;
    [self addChildViewController:all];
    [all release];
    
    //视频
    WJEssAndNewUpTableVC *video = [[WJEssAndNewUpTableVC alloc]init];
    video.title = @"视频";
    video.url = WJThroughVideoURL;
    [self addChildViewController:video];
    [video release];
    
    //图片
    WJEssAndNewUpTableVC *picture = [[WJEssAndNewUpTableVC alloc]init];
    picture.title = @"图片";
    picture.url = WJThroughPictureURL;
    [self addChildViewController:picture];
    [picture release];
    
    //段子
    WJEssAndNewUpTableVC *text = [[WJEssAndNewUpTableVC alloc]init];
    text.title = @"段子";
    text.url = WJThroughTextURL;
    [self addChildViewController:text];
    [text release];
    
    //声音
    WJEssAndNewUpTableVC *sound = [[WJEssAndNewUpTableVC alloc]init];
    sound.title = @"声音";
    sound.url = WJThroughSoundURL;
    [self addChildViewController:sound];
    [sound release];

    
}



#pragma mark - 这里应该进行的是刷新操作
- (void)tjRightAction{
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


@end
